<?php

/* Remove some user roles as they are not needed */

remove_role( 'author' );
remove_role( 'contributor' );

/* Hide some unneeded menu options and other features */

add_action( 'admin_head', 'admin_remove_bloat_css' );

function admin_remove_bloat_css() { ?>
  
<style type="text/css">
  
  #menu-posts, #menu-links, #menu-comments, .column-date, #minor-publishing, #edit-slug-box, #editor-toolbar #edButtonHTML, #edButtonPreview, #editorcontainer, #post-status-info, #quicktags {
    display: none !important;
  }
  
</style>

<?php
  
}

/* Some custom CSS */

add_action( 'wp_head' , 'wpwt_remove_bloat_css');

function wpwt_remove_bloat_css() { ?>
  
<style text="text/css">
  
  #wp-admin-bar-new-post, #wp-admin-bar-new-link, #wp-admin-bar-appearance {
    display: none !important;
  }
  
</style>

<?php

}

?>